package com.cjb.cloudsystem.vo;

import com.cjb.common.query.Query;
import com.cjb.common.util.DateUtils;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import net.minidev.json.annotate.JsonIgnore;

import java.io.Serializable;
import java.util.Date;

/**
* 设备状态
*
* @author 陈锦斌 2213859123@qq.com
* @since 1.0.0 2023-11-05
*/
@Data
@Schema(description = "设备状态")
public class DeviceStatusVO extends Query implements Serializable {
	private static final long serialVersionUID = 1L;

	@Schema(description = "设备状态ID")
	private Long deviceStatusId;

	@Schema(description = "设备ID")
	private String deviceId;

	@Schema(description = "设备文档")
	private String deviceTemperature;

	@Schema(description = "设备湿度")
	private String deviceHumidity;

	@Schema(description = "设备亮度")
	private String deviceBrightness;

	@Schema(description = "设备状态 0:正常 1：关闭")
	private Integer deviceStatus;
	@JsonIgnore
	@Schema(description = "创建时间")
	private String createTime;
	@JsonIgnore
	@Schema(description = "更新时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateTime;

	@JsonIgnore
	@Schema(description = "创建者")
	private String createor;
	@JsonIgnore
	@Schema(description = "更新者")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updater;


}